﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using System.IO;

namespace Internet_Cafe
{
    public class PCItem : ItemsControl
    {
        public BitmapImage pcActive;
        public BitmapImage pcInactive;
        public TextBlock name;
        public TextBlock ip;
        public float xPath { get; set; }
        public float yPath { get; set; }

        public PCItem(PC p)
        {
            pcInactive = new BitmapImage(new Uri(Path.Combine(Directory.GetCurrentDirectory(), "pcstyle1.png")));
            pcActive = new BitmapImage(new Uri(Path.Combine(Directory.GetCurrentDirectory(), "pcstyle2.png")));
            ip = new TextBlock();
            ip.Text = p.ip;
            name = new TextBlock();
            name.Text = "PC";
            this.AddChild(name);
            this.AddChild(ip);
        }
    }
}